function skip(id){
	var obj = event.srcElement;
	var checked = obj.checked;
	setSkip($fTr(obj),checked);
	if(id){
		setSkip($fTr(document.all(id)),checked);
	}
}
function setSkip(row,checked){
	var texts = row.getElementsByTagName("INPUT");
	var necessary = row.getElementsByTagName("SPAN");
	for(var i=0;i<texts.length;i++){
		if(texts[i].type.toLowerCase()=="checkbox"){continue}
		texts[i].className = checked?"f2":"d2";
		texts[i].disabled = !checked;
	}
	if(necessary){
		necessary[0].style.color=checked?"red":"black";
	}
}
function setIds1(){
	var suite = document.all("wizard.suite").value;
	var table = document.all("suite"+suite+".tablename").value.toLowerCase();
	setAutoValue("suite"+suite+".groupid",table);
	setAutoValue("suite"+suite+".page1id",table);
	setAutoValue("suite"+suite+".queryunitid",table+".query");
	setAutoValue("suite"+suite+".listunitid",table+".list");
	setAutoValue("suite"+suite+".formunitid",table+".form");
}
function setIds2(){
	var suite = document.all("wizard.suite").value;
	var father = document.all("suite"+suite+".fathertablename").value.toLowerCase();
	setAutoValue("suite"+suite+".groupid",father);
	setAutoValue("suite"+suite+".page1id",father);
	setAutoValue("suite"+suite+".queryunitid",father+".query");
	setAutoValue("suite"+suite+".listunitid",father+".list");
	setAutoValue("suite"+suite+".formunitid",father+".form");
	var son = document.all("suite"+suite+".sontablename").value.toLowerCase();
	setAutoValue("suite"+suite+".page2id",son);
	setAutoValue("suite"+suite+".sonlistunitid",son+".list");
}
function setAutoValue(name,value){
	var obj = document.all(name);
	if(obj && obj.value==''){obj.value = value;}
}

